package cn.blossoming.service.tips;

import cn.blossoming.dao.domain.TipsEntity;
import cn.blossoming.service.base.BaseService;
import cn.blossoming.service.dto.Tips;
import cn.blossoming.service.dto.TipsComment;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface TipsService extends BaseService<TipsEntity, Integer> {
    List<Tips> findPage(PageRequest pageRequest);

    Tips getTipsById(int id);

    Tips praiseTips(int id);

    List<TipsComment> getCommentsByTipsId(int id, PageRequest pageRequest);

    void tipsCommentPraise(int id);

    void addTipsComment(int id, String content);

    void addTipsCommentComment(int commentId, String content, int TipsId);

    List<TipsComment> getTipsCommentCommentByCommentId(int commentId, PageRequest pageRequest);

    List<Tips> findPageByUser(int userId, PageRequest pageRequest);
}
